package com.jingdun.sport.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jingdun.sport.bean.model.Room;
import com.jingdun.sport.bean.model.SportRecord;
import com.jingdun.sport.dao.SportRecordMapper;
import com.jingdun.sport.service.SportRecordService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
@Slf4j
@AllArgsConstructor
public class SportRecordServiceImpl extends ServiceImpl<SportRecordMapper, SportRecord> implements SportRecordService {

    @Autowired
    private SportRecordMapper sportRecordMapper;

    @Override
    public List<SportRecord> getListTop10(Long sportTypeId) {
        return sportRecordMapper.getListTop10(sportTypeId);
    }

    @Override
    public List<SportRecord> getSportRecordList(Map<String, Object> m) {
        return null;
    }

    @Override
    public SportRecord userNewSportProjectBy(Long sportProject, String userId) {
        return sportRecordMapper.userNewSportProjectBy(sportProject, userId);
    }
}
